package com.hckjsec.cloud.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hckjsec.cloud.mapper.AppletsPublicMechanismDetailMapper;
import com.hckjsec.cloud.domain.AppletsPublicMechanismDetail;
import com.hckjsec.cloud.service.IAppletsPublicMechanismDetailService;

/**
 * 机构简介分Service业务层处理
 * 
 * @author cyt
 * @date 2021-09-03
 */
@Service
public class AppletsPublicMechanismDetailServiceImpl implements IAppletsPublicMechanismDetailService 
{
    @Autowired
    private AppletsPublicMechanismDetailMapper appletsPublicMechanismDetailMapper;

    /**
     * 查询机构简介分
     * 
     * @param mechanismId 机构简介分ID
     * @return 机构简介分
     */
    @Override
    public AppletsPublicMechanismDetail selectAppletsPublicMechanismDetailById(Long mechanismId)
    {
        return appletsPublicMechanismDetailMapper.selectAppletsPublicMechanismDetailById(mechanismId);
    }

    /**
     * 查询机构简介分列表
     * 
     * @param appletsPublicMechanismDetail 机构简介分
     * @return 机构简介分
     */
    @Override
    public List<AppletsPublicMechanismDetail> selectAppletsPublicMechanismDetailList(AppletsPublicMechanismDetail appletsPublicMechanismDetail)
    {
        return appletsPublicMechanismDetailMapper.selectAppletsPublicMechanismDetailList(appletsPublicMechanismDetail);
    }

    /**
     * 新增机构简介分
     * 
     * @param appletsPublicMechanismDetail 机构简介分
     * @return 结果
     */
    @Override
    public int insertAppletsPublicMechanismDetail(AppletsPublicMechanismDetail appletsPublicMechanismDetail)
    {
        return appletsPublicMechanismDetailMapper.insertAppletsPublicMechanismDetail(appletsPublicMechanismDetail);
    }

    /**
     * 修改机构简介分
     * 
     * @param appletsPublicMechanismDetail 机构简介分
     * @return 结果
     */
    @Override
    public int updateAppletsPublicMechanismDetail(AppletsPublicMechanismDetail appletsPublicMechanismDetail)
    {
        return appletsPublicMechanismDetailMapper.updateAppletsPublicMechanismDetail(appletsPublicMechanismDetail);
    }

    /**
     * 批量删除机构简介分
     * 
     * @param mechanismIds 需要删除的机构简介分ID
     * @return 结果
     */
    @Override
    public int deleteAppletsPublicMechanismDetailByIds(Long[] mechanismIds)
    {
        return appletsPublicMechanismDetailMapper.deleteAppletsPublicMechanismDetailByIds(mechanismIds);
    }

    /**
     * 删除机构简介分信息
     * 
     * @param mechanismId 机构简介分ID
     * @return 结果
     */
    @Override
    public int deleteAppletsPublicMechanismDetailById(Long mechanismId)
    {
        return appletsPublicMechanismDetailMapper.deleteAppletsPublicMechanismDetailById(mechanismId);
    }
}
